package com.xin.di.uav.common.enums;

import lombok.Getter;

/**
 * @author ta136817
 */

@Getter
public enum CommJumpTypeEnum {
    /**
     * 弹屏类型枚举
     */
    NOT_STARTED("小程序",  0),
    UNDER_WAY("h5", 1);
    private String desc;
    private Integer value;

    public void setValue(Integer value) {
        this.value = value;
    }

    CommJumpTypeEnum(String desc, Integer value) {
        this.desc = desc;
        this.value = value;
    }


    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (CommJumpTypeEnum ele : values()) {
            if (ele.getValue().equals(value)) {
                return ele.getDesc();
            }
        }
        return null;
    }

}
